<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改老员工复职信息')"/>
    <th:block th:include="include :: select2-css"/>
</head>
<body>
<div class="main-content">
    <form id="form-reinstated-edit" class="form-horizontal" AUTOCOMPLETE="OFF">
        <input name="id" id="id" type="hidden" th:value="${emp.id}"/>
        <h4 class="form-header h4">基本信息</h4>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">工号：</label>
                    <div class="col-sm-8">
                        <input name="badge" id="badge" th:value="${emp.badge}" class="form-control" type="text"/>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">姓名：</label>
                    <div class="col-sm-8">
                        <input name="name" id="name" th:value="${emp.name}" class="form-control" type="text"
                               disabled="disabled"/>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">公司名称：</label>
                    <div class="col-sm-8">
                        <select id="compId" name="compId" class="form-control" th:onchange="getbumen(this.value)"
                                >
                            <option value="">请选择</option>
                            <option th:each="company:${companys}"
                                    th:value="${company.compID}" th:text="${company.title}"
                                    th:selected="${emp.CompId==company.compID}"></option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">部门名称：</label>
                    <div class="col-sm-8">
                        <select name="depId" id="depId" class="form-control m-b" th:onchange="getgangwei(this.value)">
                            <option value="">请选择</option>
                            <option th:each="odepartment:${departments}" th:value="${odepartment.DepID}"
                                    th:selected="${emp.DepId==odepartment.DepID}"
                                    th:text="${odepartment.title}"></option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">工作岗位：</label>
                    <div class="col-sm-8">
                        <select name="jobId" id="jobId" class="form-control m-b" onchange="getJobGrade()">
                            <option value="">请选择</option>
                            <option th:each="job:${jobs}" th:value="${job.jobID}" th:selected="${emp.JobId==job.jobID}"
                                    th:text="${job.title}"></option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">直接上级：</label>
                    <div class="col-sm-8">
                        <input name="ReportToName" id="ReportToName" th:value="${emp.ReportToName}" type="text"
                               onclick="getReportTo()"
                               class="form-control">
                        <input name="ReportTo" id="ReportTo" th:value="${emp.ReportTo}" type="hidden"
                               class="form-control">
                    </div>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">职能上级：</label>
                    <div class="col-sm-8">
                        <input name="WFReportToName" id="WFReportToName" th:value="${emp.WFReportToName}" type="text"
                               onclick="getWFReportTo()"
                               class="form-control">
                        <input name="WFReportTo" id="WFReportTo" th:value="${emp.wfreportto}" type="hidden"
                               class="form-control">
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">在岗状态：</label>
                    <div class="col-sm-8">
                        <select name="JobStatus" id="JobStatus" class="form-control m-b"
                                th:with="type=${@dict.getType('ECD_JOBSTATUS')}">
                            <option value="">请选择</option>
                            <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
                                    th:selected="${emp.JobStatus+'' == dict.dictValue}"
                                    th:value="${dict.dictValue}"></option>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">员工类型：</label>
                    <div class="col-sm-8">
                        <select name="EmpType" id="EmpType" class="form-control m-b"
                                th:with="type=${@dict.getType('eCD_EmpType')}">
                            <option value="">请选择</option>
                            <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
                                    th:selected="${emp.EmpType+'' == dict.dictValue}"
                                    th:value="${dict.dictValue}"></option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">工作城市：</label>
                    <div class="col-sm-8">
                        <input name="WorkCityName" id="WorkCityName" th:value="${emp.WorkCityTitle}"
                               onclick="getWorkCity()" class="form-control"
                               type="text" />
                        <input name="WorkCity" id="WorkCity" th:value="${emp.WorkCity}" class="form-control"
                               type="hidden">
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">公司邮箱：</label>
                    <div class="col-sm-8">
                        <input name="EMail" id="EMail" th:value="${emp.EMail}" class="form-control" type="text"/>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">办公电话：</label>
                    <div class="col-sm-8">
                        <input name="officePhone" id="officePhone" th:value="${emp.officePhone}" class="form-control"
                               type="text">
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
                    <div class="col-sm-6">
                        <div class="form-group">
                    <label class="col-sm-4 control-label">档案号：</label>
                    <div class="col-sm-8">
                        <input name="archiveid" id="archiveid" th:value="${emp.archiveid}" class="form-control"
                               type="text"/>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">入职渠道：</label>
                    <div class="col-sm-8">
                        <select name="JoinType" id="JoinType" class="form-control m-b"
                                th:with="type=${@dict.getType('eCD_JoinType')}">
                            <option value="">请选择</option>
                            <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
                                    th:selected="${emp.JoinType+'' == dict.dictValue}"
                                    th:value="${dict.dictValue}"></option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">入职日期：</label>
                    <div class="col-sm-8">
                        <input name="JoinDate" id="JoinDate" th:value="${emp.JoinDate}"
                               class="form-control laydate-demo-1" type="text"/>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">司龄调整：</label>
                    <div class="col-sm-8">
                        <input name="CyearAdjust" id="CyearAdjust" th:value="${emp.CyearAdjust}" class="form-control"
                               type="text"/>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">参加工作时间：</label>
                    <div class="col-sm-8">
                        <input name="WorkBeginDate" id="WorkBeginDate" th:value="${emp.WorkBeginDate}"
                               class="form-control laydate-demo-2" type="text"/>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">实习开始日期：</label>
                    <div class="col-sm-8">
                        <input name="PracBeginDate" id="PracBeginDate" th:value="${emp.PracBeginDate}"
                               class="form-control laydate-demo-3" type="text"/>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">实习期限(月)：</label>
                    <div class="col-sm-8">
                        <input name="PracTerm" id="PracTerm" th:value="${emp.PracTerm}" class="form-control"
                               type="text"/>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">实习终止日期：</label>
                    <div class="col-sm-8">
                        <input name="PracEndDate" id="PracEndDate" th:value="${emp.PracEndDate}"
                               class="form-control laydate-demo-4" type="text"/>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">试用开始日期：</label>
                    <div class="col-sm-8">
                        <input name="ProbBeginDate" id="ProbBeginDate" th:value="${emp.ProbBeginDate}"
                               class="form-control laydate-demo-5" type="text"/>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">试用期限(月)：</label>
                    <div class="col-sm-8">
                        <input name="ProbTerm" id="ProbTerm" th:value="${emp.ProbTerm}" class="form-control"
                               type="text"/>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">试用终止日期：</label>
                    <div class="col-sm-8">
                        <input name="ProbEndDate" id="ProbEndDate" th:value="${emp.ProbEndDate}"
                               class="form-control laydate-demo-6" type="text"/>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">合同类型：</label>
                    <div class="col-sm-8">
                        <select name="ConType" id="ConType" class="form-control m-b"
                                th:with="type=${@dict.getType('eCD_ConType')}">
                            <option value="">请选择</option>
                            <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
                                    th:selected="${emp.ConType+'' == dict.dictValue}"
                                    th:value="${dict.dictValue}"></option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">合同属性：</label>
                    <div class="col-sm-8">
                        <select name="ConProperty" id="ConProperty" class="form-control m-b"
                                th:with="type=${@dict.getType('eCD_ConProperty')}">
                            <option value="">请选择</option>
                            <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
                                    th:selected="${emp.ConProperty+'' == dict.dictValue}"
                                    th:value="${dict.dictValue}"></option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">签约单位：</label>
                    <div class="col-sm-8">
                        <input name="Contract" id="Contract" th:value="${emp.Contract}" class="form-control"
                               type="text"/>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">合同编号：</label>
                    <div class="col-sm-8">
                        <input name="ConNo" id="ConNo" th:value="${emp.ConNo}" class="form-control" type="text"/>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">合同开始日期：</label>
                    <div class="col-sm-8">
                        <input name="ConBeginDate" id="ConBeginDate" th:value="${emp.ConBeginDate}"
                               class="form-control laydate-demo-7" type="text"/>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">合同期(年)：</label>
                    <div class="col-sm-8">
                        <input name="ConTerm" id="ConTerm" th:value="${emp.ConTerm}" class="form-control" type="text"/>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">合同结束日期：</label>
                    <div class="col-sm-8">
                        <input name="ConEndDate" id="ConEndDate" th:value="${emp.ConEndDate}"
                               class="form-control laydate-demo-8" type="text"/>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">工龄调整：</label>
                    <div class="col-sm-8">
                        <input name="WyearAdjust" id="WyearAdjust" th:value="${emp.WyearAdjust}" class="form-control"
                               type="text"/>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">籍贯：</label>
                    <div class="col-sm-8">
                        <input name="Resident" id="Resident" th:value="${emp.Resident}" class="form-control"
                               type="text"/>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">身份证地址：</label>
                    <div class="col-sm-8">
                        <input name="certaddress" id="certaddress" th:value="${emp.certaddress}" class="form-control"
                               type="text"/>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">婚姻状况：</label>
                    <div class="col-sm-8">
                        <select name="MarriageTitle" id="MarriageTitle" class="form-control m-b"
                                th:with="type=${@dict.getType('eCD_Marriage')}">
                            <option value="">请选择</option>
                            <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
                                    th:selected="${emp.Marriage+'' == dict.dictValue}"
                                    th:value="${dict.dictValue}"></option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">政治面貌：</label>
                    <div class="col-sm-8">
                        <select name="Party" id="Party" class="form-control m-b"
                                th:with="type=${@dict.getType('eCD_Party')}">
                            <option value="">请选择</option>
                            <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
                                    th:selected="${emp.Party+'' == dict.dictValue}"
                                    th:value="${dict.dictValue}"></option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">是否参军：</label>
                    <div class="col-sm-8">
                        <select id="army" name="army" class="form-control m-b">
                            <option value="">请选择</option>
                            <option value="0" th:selected="${emp.army == 0}">否</option>
                            <option value="1" th:selected="${emp.army == 1}">是</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">退伍部队：</label>
                    <div class="col-sm-8">
                        <input name="leavearmy" id="leavearmy" th:value="${emp.leavearmy}" class="form-control"
                               type="text"/>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">最高学历：</label>
                    <div class="col-sm-8">
                        <select name="HighLevel" id="HighLevel" class="form-control m-b"
                                th:with="type=${@dict.getType('eCD_EduType')}">
                            <option value="">请选择</option>
                            <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
                                    th:selected="${emp.HighLevel+'' == dict.dictValue}"
                                    th:value="${dict.dictValue}"></option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">最高学位：</label>
                    <div class="col-sm-8">
                        <select name="HighDegree" id="HighDegree" class="form-control m-b"
                                th:with="type=${@dict.getType('eCD_DegreeType')}">
                            <option value="">请选择</option>
                            <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
                                    th:selected="${emp.HighDegree+'' == dict.dictValue}"
                                    th:value="${dict.dictValue}"></option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">最高学历毕业院校：</label>
                    <div class="col-sm-8">
                        <input name="highschool" id="highschool" th:value="${emp.highschool}" class="form-control"
                               type="text"/>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">最高学历毕业时间：</label>
                    <div class="col-sm-8">
                        <input name="highenddate" id="highenddate" th:value="${emp.highenddate}" class="form-control laydate-demo-9"
                               type="text"/>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">最高学历专业：</label>
                    <div class="col-sm-8">
                        <input name="Major" id="Major" th:value="${emp.Major}" class="form-control"
                               type="text"/>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">最高职称/资格证书：</label>
                    <div class="col-sm-8">
                        <input name="HighTitle" id="HighTitle" th:value="${emp.HighTitle}" class="form-control"
                               type="text"/>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">现在住址：</label>
                    <div class="col-sm-8">
                        <input name="Address" id="Address" th:value="${emp.Address}" class="form-control"
                               type="text"/>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">联系电话1：</label>
                    <div class="col-sm-8">
                        <input name="Tel" id="Tel" th:value="${emp.Tel}" class="form-control"
                               type="text"/>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">私人邮箱：</label>
                    <div class="col-sm-8">
                        <input name="eMailPers" id="eMailPers" th:value="${emp.eMailPers}" class="form-control"
                               type="text"/>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">星座：</label>
                    <div class="col-sm-8">
                        <input name="Constellation" id="Constellation" th:value="${emp.Constellation}" class="form-control"
                               type="text"/>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">QQ：</label>
                    <div class="col-sm-8">
                        <input name="QQ" id="QQ" th:value="${emp.QQ}" class="form-control"
                               type="text"/>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">微信：</label>
                    <div class="col-sm-8">
                        <input name="Wechart" id="Wechart" th:value="${emp.Wechart}" class="form-control"
                               type="text"/>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>


<th:block th:include="include :: footer"/>
<th:block th:include="include :: select2-js"/>
<th:block th:include="include :: datetimepicker-js"/>

<script th:inline="javascript">

    var prefix = ctx + "entryExitManage/reinstatedManage";

    $(function () {
        layui.use('laydate', function () {
            var laydate = layui.laydate;
            laydate.render({
                elem: '.laydate-demo-1',
                type: 'date'
            });
        });

        layui.use('laydate', function () {
            var laydate = layui.laydate;
            laydate.render({
                elem: '.laydate-demo-2',
                type: 'date'
            });
        });

        layui.use('laydate', function () {
            var laydate = layui.laydate;
            laydate.render({
                elem: '.laydate-demo-3',
                type: 'date'
            });
        });

        layui.use('laydate', function () {
            var laydate = layui.laydate;
            laydate.render({
                elem: '.laydate-demo-4',
                type: 'date'
            });
        });

        layui.use('laydate', function () {
            var laydate = layui.laydate;
            laydate.render({
                elem: '.laydate-demo-5',
                type: 'date'
            });
        });

        layui.use('laydate', function () {
            var laydate = layui.laydate;
            laydate.render({
                elem: '.laydate-demo-6',
                type: 'date'
            });
        });

        layui.use('laydate', function () {
            var laydate = layui.laydate;
            laydate.render({
                elem: '.laydate-demo-7',
                type: 'date'
            });
        });

        layui.use('laydate', function () {
            var laydate = layui.laydate;
            laydate.render({
                elem: '.laydate-demo-8',
                type: 'date'
            });
        });
    });

    function submitHandler() {
        if ($.validate.form()) {

            var data = $("#form-reinstated-edit").serializeArray();
            $.operate.save(prefix + "/edit", data);
        }
    }

    function getbumen(value) {
        var html = "";
        $.ajax({
            async: false,
            url: ctx + "empentry/findDep",
            data: {
                "compID": value
            },
            type: "post",
            dataType: "json",
            success: function (data) {
                $("#depId").empty();
                var arry = data;
                html += "<option value=''>请选择</option>";
                for (var i = 0; i < arry.length; i++) {
                    html += "<option value='"
                        + arry[i].depID
                        + "'>"
                        + arry[i].title
                        + "</option>";
                }
                $("#depId").append(html);
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                alert("错误,请联系管理员,错误信息:" + textStatus);
            }
        });
    }

    function getgangwei(value) {
        var html = "";
        $.ajax({
            async: false,
            url: ctx + "empentry/findJob",
            data: {
                "DepID": value
            },
            type: "post",
            dataType: "json",
            success: function (data) {
                $("#jobId").empty();
                var arry = data;
                html += "<option value=''>请选择</option>";
                for (var i = 0; i < arry.length; i++) {
                    html += "<option value='"
                        + arry[i].jobID
                        + "'>"
                        + arry[i].title
                        + "</option>";
                }
                $("#jobId").append(html);
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {

                alert("错误,请联系管理员,错误信息:" + textStatus);
            }
        });
    }

    function getReportTo() {
        $.modal.open("选择直接上级", ctx + "entryManage/newEmpRegister/getReportTo?type=ReportTo");
    }

    function getWFReportTo() {
        $.modal.open("选择职能上级", ctx + "entryManage/newEmpRegister/getReportTo?type=WFReportTo");
    }

    function getWorkCity() {
        $.modal.open("选择工作城市", ctx + "entryManage/newEmpRegister/getWorkCity");
    }

    function getJobGrade() {
        $.ajax({
            async: false,
            url: ctx + "entryManage/newEmpRegister/getJobGrade",
            data: {
                "jobId": $("#jobId").val()
            },
            type: "post",
            dataType: "text",
            success: function (data) {
                $("#JobGrade").val(data);
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                alert("错误,请联系管理员,错误信息:" + textStatus);
            }
        });
    }

    function getGenderAndBirthDay() {
        $.ajax({
            async: false,
            url: ctx + "entryManage/newEmpRegister/getGenderAndBirthDay",
            data: {
                "CertType": $("#CertType").val(),
                "CertNo": $("#CertNo").val()
            },
            type: "post",
            dataType: "json",
            success: function (data) {
                if (data.gender == 1) {
                    $("#GenderName").val("男");
                    $("#Gender").val("1");
                } else if (data.gender == 2) {
                    $("#Gender").val("2");
                }
                $("#BirthDay").val(data.BirthDay);
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                alert("错误,请联系管理员,错误信息:" + textStatus);
            }
        });
    }

</script>
</body>
</html>
